from django.contrib import admin
from .models import User

# Register your models here.


admin.site.site_header = 'CSDN MOOC Admin Site'
admin.site.index_title = 'Admin Site'
admin.site.site_title = 'Management'


@admin.register(User)
class UserAdmin(admin.ModelAdmin):
    list_display = ['username', 'balance', 'gender', 'nikname']
    search_fields = ['username', 'nikname']
    list_filter = ['gender']
